package com.scalar.chiptrack.adaptor.wipfed;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Dec 12, 2006
 * Time: 3:30:28 PM
 */
public class WipFedStatus
{

    private String lotNumber;
    private String split;
    private String mfgArea;
    private String feStartPart;
    private String feStartRev;
    private String diePart;
    private String dieRev;
    private String bePart;
    private String beRev;
    private String pkg;
    private String tempRange;
    private String bin;
    private String pkgCode;
    private String fisrtBin;
    private String mesStep;
    private String mfgLoc;
    private String preMfgLoc;
    private String nextMfgLoc;
    private String csDate;
    private String rsDate;
    private String osDate;
    private String startDate;
    private String outDate;
    private String mktPart;
    private String mfgPart;
    private String device;
    private String mesStatus;
    private String division;
    private String mpStage;
    private String mpLevel;
    private String mpStatus;
    private String mpTreatment;
    private String mesQty;
    private String mpQty;
    private String prodItem;
    private String prodLoc;
    private String opLoc;
    private String transactionSource;
    private String mrb;
    private String include;
    private String errCode;
    private String warnCode;
    private String fePartNo;
    private String diePartNo;
    private String bePartNo;
    private String psType;
    private String CharteredPartNo;

    private String waferID;
    private String dieQty;
    private String grade;
    private String step;
    private String status;
    private String thickness;
    private String age;
    private String location;
    private String shipQty;
    private String shipDate;


    public String getLotNumber() {
        return lotNumber;
    }

    public void setLotNumber(String lotNumber) {
        this.lotNumber = lotNumber;
    }

    public String getSplit() {
        return split;
    }

    public void setSplit(String split) {
        this.split = split;
    }

    public String getMfgArea() {
        return mfgArea;
    }

    public void setMfgArea(String mfgArea) {
        this.mfgArea = mfgArea;
    }

    public String getFeStartPart() {
        return feStartPart;
    }

    public void setFeStartPart(String feStartPart) {
        this.feStartPart = feStartPart;
    }

    public String getFeStartRev() {
        return feStartRev;
    }

    public void setFeStartRev(String feStartRev) {
        this.feStartRev = feStartRev;
    }

    public String getDiePart() {
        return diePart;
    }

    public void setDiePart(String diePart) {
        this.diePart = diePart;
    }

    public String getDieRev() {
        return dieRev;
    }

    public void setDieRev(String dieRev) {
        this.dieRev = dieRev;
    }

    public String getBePart() {
        return bePart;
    }

    public void setBePart(String bePart) {
        this.bePart = bePart;
    }

    public String getBeRev() {
        return beRev;
    }

    public void setBeRev(String beRev) {
        this.beRev = beRev;
    }

    public String getPkg() {
        return pkg;
    }

    public void setPkg(String pkg) {
        this.pkg = pkg;
    }

    public String getTempRange() {
        return tempRange;
    }

    public void setTempRange(String tempRange) {
        this.tempRange = tempRange;
    }

    public String getBin() {
        return bin;
    }

    public void setBin(String bin) {
        this.bin = bin;
    }

    public String getPkgCode() {
        return pkgCode;
    }

    public void setPkgCode(String pkgCode) {
        this.pkgCode = pkgCode;
    }

    public String getFisrtBin() {
        return fisrtBin;
    }

    public void setFisrtBin(String fisrtBin) {
        this.fisrtBin = fisrtBin;
    }

    public String getMesStep() {
        return mesStep;
    }

    public void setMesStep(String mesStep) {
        this.mesStep = mesStep;
    }

    public String getMfgLoc() {
        return mfgLoc;
    }

    public void setMfgLoc(String mfgLoc) {
        this.mfgLoc = mfgLoc;
    }

    public String getPreMfgLoc() {
        return preMfgLoc;
    }

    public void setPreMfgLoc(String preMfgLoc) {
        this.preMfgLoc = preMfgLoc;
    }

    public String getNextMfgLoc() {
        return nextMfgLoc;
    }

    public void setNextMfgLoc(String nextMfgLoc) {
        this.nextMfgLoc = nextMfgLoc;
    }

    public String getCsDate() {
        return csDate;
    }

    public void setCsDate(String csDate) {
        this.csDate = csDate;
    }

    public String getRsDate() {
        return rsDate;
    }

    public void setRsDate(String rsDate) {
        this.rsDate = rsDate;
    }

    public String getOsDate() {
        return osDate;
    }

    public void setOsDate(String osDate) {
        this.osDate = osDate;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getOutDate() {
        return outDate;
    }

    public void setOutDate(String outDate) {
        this.outDate = outDate;
    }

    public String getMktPart() {
        return mktPart;
    }

    public void setMktPart(String mktPart) {
        this.mktPart = mktPart;
    }

    public String getMfgPart() {
        return mfgPart;
    }

    public void setMfgPart(String mfgPart) {
        this.mfgPart = mfgPart;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getMesStatus() {
        return mesStatus;
    }

    public void setMesStatus(String mesStatus) {
        this.mesStatus = mesStatus;
    }

    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }

    public String getMpStage() {
        return mpStage;
    }

    public void setMpStage(String mpStage) {
        this.mpStage = mpStage;
    }

    public String getMpLevel() {
        return mpLevel;
    }

    public void setMpLevel(String mpLevel) {
        this.mpLevel = mpLevel;
    }

    public String getMpStatus() {
        return mpStatus;
    }

    public void setMpStatus(String mpStatus) {
        this.mpStatus = mpStatus;
    }

    public String getMpTreatment() {
        return mpTreatment;
    }

    public void setMpTreatment(String mpTreatment) {
        this.mpTreatment = mpTreatment;
    }

    public String getMesQty() {
        return mesQty;
    }

    public void setMesQty(String mesQty) {
        this.mesQty = mesQty;
    }

    public String getMpQty() {
        return mpQty;
    }

    public void setMpQty(String mpQty) {
        this.mpQty = mpQty;
    }

    public String getProdItem() {
        return prodItem;
    }

    public void setProdItem(String prodItem) {
        this.prodItem = prodItem;
    }

    public String getProdLoc() {
        return prodLoc;
    }

    public void setProdLoc(String prodLoc) {
        this.prodLoc = prodLoc;
    }

    public String getOpLoc() {
        return opLoc;
    }

    public void setOpLoc(String opLoc) {
        this.opLoc = opLoc;
    }

    public String getTransactionSource() {
        return transactionSource;
    }

    public void setTransactionSource(String transactionSource) {
        this.transactionSource = transactionSource;
    }

    public String getMrb() {
        return mrb;
    }

    public void setMrb(String mrb) {
        this.mrb = mrb;
    }

    public String getInclude() {
        return include;
    }

    public void setInclude(String include) {
        this.include = include;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getWarnCode() {
        return warnCode;
    }

    public void setWarnCode(String warnCode) {
        this.warnCode = warnCode;
    }

    public String getFePartNo() {
        return fePartNo;
    }

    public void setFePartNo(String fePartNo) {
        this.fePartNo = fePartNo;
    }

    public String getDiePartNo() {
        return diePartNo;
    }

    public void setDiePartNo(String diePartNo) {
        this.diePartNo = diePartNo;
    }

    public String getBePartNo()
    {
        return bePartNo;
    }

    public void setBePartNo(String bePartNo)
    {
        this.bePartNo = bePartNo;
    }


    public String getFabPartNumber()
    {
       String fabPartNo = null; 

       if( diePart != null && dieRev != null )
       {
           fabPartNo = diePart + dieRev;
       }

       return fabPartNo;
    }



    public String getBasePartNo()
    {
        String basePartNo   = null;
        if( feStartPart != null && feStartRev != null )
        {
           basePartNo = feStartPart + feStartRev;
        }

        return basePartNo; 
    }

    public String getPsType()
    {
        return psType;
    }

    public void setPsType(String psType)
    {
        this.psType = psType;
    }

    public String getCharteredPartNo() {
        return CharteredPartNo;
    }

    public void setCharteredPartNo(String charteredPartNo) {
        CharteredPartNo = charteredPartNo;
    }

    public String getWaferID() {
        return waferID;
    }

    public void setWaferID(String waferID) {
        this.waferID = waferID;
    }

    public String getDieQty() {
        return dieQty;
    }

    public void setDieQty(String dieQty) {
        this.dieQty = dieQty;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getStep() {
        return step;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getThickness() {
        return thickness;
    }

    public void setThickness(String thickness) {
        this.thickness = thickness;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    /*Setting lot number as lotNumber-split*/
    public String getLotNo()
    {
        String fabLotNumber = null;
       if( ( lotNumber != null && lotNumber.trim().length() > 0 && !"lot".equalsIgnoreCase(lotNumber.trim() ) ) && ( split != null && split.trim().length() > 0 && !"split".equalsIgnoreCase(split.trim())))
       {
          fabLotNumber = lotNumber + "-" + split;
       }
       else
       {
           fabLotNumber = lotNumber;
       }

       return fabLotNumber;
    }


    public String getShipQty() {
        return shipQty;
    }

    public void setShipQty(String shipQty) {
        this.shipQty = shipQty;
    }

    public String getShipDate() {
        return shipDate;
    }

    public void setShipDate(String shipDate) {
        this.shipDate = shipDate;
    }

    /**
	 * String representation of Wip Fed Info
	 */
	public String toString()
    {
		StringBuffer buf = new StringBuffer();
		buf.append ("[ Lot Number: ").append (lotNumber);
		buf.append ("] [ Part Number: ").append (feStartPart);
		buf.append ("] [ Stage: ").append (mesStep);
		buf.append ("] [ Quantity: ").append (mesQty);
		buf.append ("] [ Vendor Name: ").append (mfgLoc);
		buf.append ("] [ Mfg Area: ").append (mfgArea).append (" ]");
		/*buf.append ("] [ Receive Date: ").append (receiveDate);
		buf.append ("] [ Receive Time: ").append (receiveTime);
		buf.append ("] [ Status Change: ").append (statusChange);
		buf.append ("] [ Status: ").append (status);
		buf.append ("] [ Stage: ").append (stage);
		buf.append ("] [ Receive Qty: ").append(receiveQty);
		buf.append ("] [ Q'ty: ").append(quantity);
		buf.append ("] [ Sort Qty: ").append(sortQty);
		buf.append ("] [ Owner: ").append(owner);
		buf.append ("] [ QNR No: ").append(qnrNo);
		buf.append ("] [ Hold Reason: ").append(holdReason);
        buf.append ("] [ Code: ").append(code);
        buf.append ("] [ Customer WO: ").append(customerWO);
        buf.append ("] [ Gross Die: ").append(grossDie);
        buf.append ("] [ Good Die: ").append(goodDie);
        buf.append ("] [ Yield: ").append(yield);
        buf.append ("] [ Tester No: ").append(testerNo);
        buf.append ("] [ Customer Order: ").append(customerOrder);
        buf.append ("] [ Wafer List: ").append(waferList).append (" ]"); */
		return buf.toString();
	}



}
